package com.imooc.bilibili.auth;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.bilibili.domain.auth.AuthRole;
import com.imooc.bilibili.domain.auth.AuthRoleElementOperation;
import com.imooc.bilibili.domain.auth.AuthRoleMenu;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 权限控制--角色表 服务类
 * </p>
 *
 * @author gcq
 * @since 2022-05-31
 */
public interface IAuthRoleService extends IService<AuthRole> {

    /**
     * 查询用户角色元素操作
     *
     * @param roleIdSet
     * @return
     */
    List<AuthRoleElementOperation> getRoleElementOperationByRoleIds(Set<Long> roleIdSet);

    /**
     * 角色菜单
     *
     * @param roleIdSet
     * @return
     */
    List<AuthRoleMenu> getAuthRoleMenuByRoleIds(Set<Long> roleIdSet);
}
